package com.bumptech.glide.request.animation;

import android.view.View;
import android.view.animation.Animation;

public class ViewAnimation<R>
  implements GlideAnimation<R>
{
  private final AnimationFactory animationFactory;

  ViewAnimation(AnimationFactory paramAnimationFactory)
  {
    this.animationFactory = paramAnimationFactory;
  }

  public boolean animate(R paramR, GlideAnimation.ViewAdapter paramViewAdapter)
  {
    View localView = paramViewAdapter.getView();
    if (localView != null)
    {
      localView.clearAnimation();
      localView.startAnimation(this.animationFactory.build());
    }
    return false;
  }

  static abstract interface AnimationFactory
  {
    public abstract Animation build();
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.bumptech.glide.request.animation.ViewAnimation
 * JD-Core Version:    0.6.2
 */